import Labels from '@/views/Labels.vue';
import Money from '@/views/Money.vue';
import Statistics from '@/views/Statistics.vue';
import Vue from 'vue';
import VueRouter from 'vue-router';
import NotFound from '@/views/NotFound.vue'
import EditLabel from '@/views/EditLabel.vue';
Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/money'
  }
  ,
  {
    path: '/money',
    component: Money
  },
  {
    path: '/labels',
    component: Labels
  },
  {
    path: '/statistics',
    component: Statistics
  },
  {
    path: '/labels/edit/:id',
    component: EditLabel
  },
  {
    path: '*',
    component: NotFound
  },

]

const router = new VueRouter({
  routes
})

export default router
